#ifndef __FILEWRITERIMPL_H__
#define __FILEWRITERIMPL_H__

#include <QObject>
#include <QDomDocument>
#include <QTreeWidget>

#include "datamodel.h"

class FileWriter : public QObject
{
    Q_OBJECT
public:
    FileWriter(const QString &file, Model *model);
    
    void Write(QTreeWidget *treeWidget);        

private:
	QDomDocument m_doc;				
	QString m_fileName;
	Model *m_model;
	
	void processItem(QDomElement *parent, QTreeWidgetItem *item);
};

#endif // __FILEWRITERIMPL_H__
